/**
 * 
 */
package kr.co.insoft.core.repository.template.script;

import java.util.List;

import kr.co.insoft.core.model.paging.PagingModel;
import kr.co.insoft.core.model.template.script.ScriptEntityModel;
import kr.co.insoft.framework.exceptions.RepositoryException;

/**
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
public interface ScriptRepository {
	/**
	 * Script Paging 목록 / pagingModel 검증
	 * 
	 * @param pagingModel
	 * @return
	 * @throws RepositoryException
	 */
	public List<ScriptEntityModel> getPagingList(PagingModel pagingModel)
			throws RepositoryException;
	
	/**
	 * Script 목록
	 * 
	 * @param pagingModel
	 * @return
	 * @throws RepositoryException
	 */
	public List<ScriptEntityModel> getList(ScriptEntityModel scriptEntityModel)
			throws RepositoryException;
	
	/**
	 * Script 전체 카운트 / pagingModel 검증
	 * 
	 * @param pagingModel
	 * @return
	 * @throws RepositoryException
	 */
	public int getTotalCount(PagingModel pagingModel)
			throws RepositoryException;

	/**
	 * Script / ScriptEntityModel 검증
	 * 
	 * @param scriptEntityModel
	 * @return
	 * @throws RepositoryException
	 */
	public ScriptEntityModel getScript(
			ScriptEntityModel scriptEntityModel) throws RepositoryException;

	/**
	 * Script 생성
	 * 
	 * @param scriptEntityModel
	 * @throws RepositoryException
	 */
	public ScriptEntityModel createScript(ScriptEntityModel scriptEntityModel)
			throws RepositoryException;
	
	/**
	 * Script 삭제
	 * 
	 * @param scriptEntityModel
	 * @throws RepositoryException
	 */
	public void doRemoveScript(ScriptEntityModel scriptEntityModel)
			throws RepositoryException;
	
	/**
	 * Script 수정
	 * 
	 * @param scriptEntityModel
	 * @throws RepositoryException
	 */
	public void doEditScript(ScriptEntityModel scriptEntityModel)
			throws RepositoryException;

	/**
	 * Script Name 중복체크
	 * 
	 * @param scriptEntityModel
	 * @throws RepositoryException
	 */
	public int isExistScriptName(ScriptEntityModel scriptEntityModel)
			throws RepositoryException;



}
